package com.lecture.junit.tdd.example;

public interface IAccount {
	/**
	 * Returns list of old passwords, where oldest password is stored at zero
	 * index.
	 * 
	 * @return list of old passwords, sorted by their age in descending order
	 */
	public String[] getOldPasswordList();

	public int getPasswordAge(String password);

	public boolean passwordMatches(String password);

	public void setLoggedIn(boolean loggedIn);

	public void setRevoked(boolean revoked);

	public boolean isRevoked();

	public String getUserName();

	public void setPassword(String password);

	/**
	 * Returns number of days since account was used for the last time. (E.g.,
	 * if account has been used a moment ago, it returns 0.)
	 * 
	 * @return number of days since last use
	 */
	public int wasLastUsed();
}
